﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UC_UserGroup_Edit.ascx.cs" Inherits="QuanLyKhachSan.UC_UserGroup_Edit" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<style type="text/css">
    .style1
    {
        font-family: Tahoma;
        font-size: 12px;
        width: 90px;
    }
</style>
<table width="100%">
    <tr>
        <td colspan="2" style="width:200px">
            <telerik:RadGrid ID="lstGroup" runat="server" Skin="Windows7" 
                AllowMultiRowSelection="true">
                <MasterTableView DataKeyNames="GroupID" AutoGenerateColumns="false" GridLines="None">
                    <CommandItemSettings ExportToPdfText="Export to Pdf" />   
                    <Columns>   
                        <telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn">
                            <%--<HeaderTemplate>
                             <asp:CheckBox id="chkSelectAll" runat="server"></asp:CheckBox>
                            </HeaderTemplate>--%>
                            <ItemTemplate>
                                <asp:CheckBox id="chkSelect" runat="server"></asp:CheckBox>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" Width="15" />
                            <ItemStyle HorizontalAlign="Center" />
                        </telerik:GridTemplateColumn>
                        
                        <telerik:GridTemplateColumn HeaderText="Tên nhóm" UniqueName="GroupName">
                            <ItemTemplate>
                                <%#Eval("GroupName")%>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" />
                            <ItemStyle HorizontalAlign="Left" />
                        </telerik:GridTemplateColumn>
                    </Columns>                    
                </MasterTableView>          
            </telerik:RadGrid>              
        </td>
    </tr>
    <tr>
        <td class="style1">
            <asp:Label ID="lblGroup" runat="server" Text="Tài khoản:(*)"></asp:Label>
        </td>
        <td>
            <telerik:RadComboBox ID="cbxUser" runat="server" EmptyMessage="Chọn tài khoản người dùng" Width="110px">
            </telerik:RadComboBox>
        </td>
    </tr>
    <tr>
        <td class="style1">
            <asp:Label ID="lblEffectiveDate" runat="server" Text="Ngày bắt đầu:"></asp:Label>
        </td>
        <td>
            <telerik:RadDatePicker ID="rdpEffectiveDate" Runat="server" Width="110px" 
                ShowPopupOnFocus="True" Culture="en-US">
                <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" 
                    ViewSelectorText="x"></Calendar>
                <DateInput DisplayDateFormat="MM/dd/yyyy" DateFormat="MM/dd/yyyy" 
                    emptymessage="Nhập ngày bắt đầu" Width="110px"></DateInput>
                <DatePopupButton Visible="false" ImageUrl="" HoverImageUrl=""></DatePopupButton>
            </telerik:RadDatePicker>
        </td>
    </tr>
    <tr>
        <td class="style1">
            <asp:Label ID="lblExpiryDate" runat="server" Text="Ngày hết hạn:"></asp:Label>
        </td>
        <td>
            <telerik:RadDatePicker ID="rdpExpiryDate" Runat="server" Width="110px" 
                ShowPopupOnFocus="True" Culture="en-US">
                <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" 
                    ViewSelectorText="x"></Calendar>
                <DateInput DisplayDateFormat="MM/dd/yyyy" DateFormat="MM/dd/yyyy" 
                    emptymessage="Nhập ngày hết hạn" Width="110px"></DateInput>
                <DatePopupButton Visible="false" ImageUrl="" HoverImageUrl=""></DatePopupButton>
            </telerik:RadDatePicker>
        </td>
    </tr>
    <tr>
        <td class="style1">
            <asp:Label ID="lblIsTrialUsed" runat="server" Text="Dùng thử:"></asp:Label>
        </td>
        <td>
            <asp:CheckBox ID="chkIsTrialUsed" runat="server" Checked="false"/>     
        </td>
    </tr>
    <tr>
        <td colspan="2" align="center">            
            <table width="200px">
                <tr>
                    <td align="right">
                        <telerik:RadButton ID="cmdCancel" runat="server" Text="Cancel">
                        </telerik:RadButton>    
                    </td>
                    <td align="left">
                        <telerik:RadButton ID="cmdOK" runat="server" Text="OK" onclick="cmdOK_Click">
                        </telerik:RadButton> 
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
